import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'home',
            component: HomeView
        },
        {
            path: '/about',
            name: 'about',
            component: () => import('../views/AboutView.vue')
        },
        {
            path: '/Usershow',
            name: 'Usershow',
            component: () => import('../views/Usershow.vue')
        },
        {
            path: '/add',
            name: 'add',
            component: () => import('../views/add.vue')
        },
        {
            path: '/show',
            name: 'show',
            component: () => import('../views/show.vue')
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../views/login.vue')
        }
    ]
})

export default router
